<?php
namespace app\admin\model;

use think\Model;

class OrderProduct extends Model
{
    protected $table = 'order_product';
    protected $autoWriteTimestamp = 'datetime';
    public function good(){

        return $this->hasOne('Good','id','product_id');

    }

}